package com.xixibaby.core;

import java.util.function.Supplier;

/**
 *
 * 需要打断并且不提醒异常，直接返回默认数据
 * @author tomj
 *
 */
public class DefaultException extends RuntimeException {
    private Supplier<Object> supplier;

    public DefaultException(Supplier<Object> supplier){
        this.supplier = supplier;
    }

    public Supplier<Object> getSupplier() {
        return supplier;
    }

}
